import React from 'react';
import { Tabs } from 'antd';
import type { TabsProps } from 'antd';
import Gonum from './components/index'
import CrudModel from './components/CRUD'
const onChange = (key: string) => {
  console.log(key);
};

const items: TabsProps['items'] = [
  {
    key: '1',
    label: '加减计算',
    children: <Gonum/>
  },
  {
    key: '2',
    label: '增删改查',
    children: <CrudModel/>
  },
 
];

const App = function(){

  return <Tabs className='w-full h-full' defaultActiveKey="1" items={items} onChange={onChange} />;
}

export default App;